//
//  HistoryTableViewCell.swift
//  TianTianBiTing
//
//  Created by Gox mac 2 on 2019/3/11.
//  Copyright © 2019 Gox_WallyDiao. All rights reserved.
//

import UIKit

protocol HistoryTableViewCellDelegate:NSObjectProtocol {
    func findActionDele(cell:UITableViewCell)
    
}

class HistoryTableViewCell: UITableViewCell {
    var delegate:HistoryTableViewCellDelegate?
    
    @IBOutlet weak var leftImageView: UIImageView!
    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var desLabel: UILabel!
    @IBOutlet weak var newLabel: UILabel!
    @IBOutlet weak var playLabel: UILabel!
    @IBAction func findAction(_ sender: UIButton) {
        delegate?.findActionDele(cell: self)
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        setUI()
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    func setUI() {
        self.isUserInteractionEnabled = true
        self.leftImageView.layer.cornerRadius = 3
        self.leftImageView.layer.masksToBounds = true
    }
    
}
